package com.vq3.digitalizationsoftwareintegrates.Utils.PermissionControl;


import com.fasterxml.jackson.core.JsonProcessingException;
import com.vq3.digitalizationsoftwareintegrates.Entity.MessageCenter.MessageCenter_PerEntity;

import java.util.ArrayList;
import java.util.List;


/*
public class Deduplication {

    public static List<MessageCenter_PerEntity> messageSidBarDeduplication(List<MessageCenter_PerEntity> listObj) throws JsonProcessingException {
        List<MessageCenter_PerEntity> list = new ArrayList<>();
        for (int i = 0; i < listObj.size() ; i++) {
            boolean flag = true;
            for (int j = i+ 1; j <listObj.size() ; j++) {
                if (listObj.get(i).getMid().equals(listObj.get(j).getMid()) && listObj.get(i).getRoleid().equals(listObj.get(j).getRoleid())){
                    flag = false;
                    break;
                }
            }
            if (flag) {
                list.add(listObj.get(i));
            }
        }
        return list;

    }
    }
*/

